package com.yn.courseselectionsystem.pojo;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2021/1/12 9:34
 * Role of:  预约表
 * @version: v1.0
 */

public class Appointment {

    public Appointment(){}
    public Appointment(Integer id, Integer userId, Integer courseId, Integer takeTheCourseWin) {
        this.id = id;
        this.userId = userId;
        this.courseId = courseId;
        this.takeTheCourseWin = takeTheCourseWin;
    }

    private Integer id;
    private Integer userId;//预约人
    private Integer courseId;//预约的课程
    private Integer takeTheCourseWin;//是否选课成功 0未成功  1成功

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getTakeTheCourseWin() {
        return takeTheCourseWin;
    }

    public void setTakeTheCourseWin(Integer takeTheCourseWin) {
        this.takeTheCourseWin = takeTheCourseWin;
    }

    @Override
    public String toString() {
        return "Appointment{" +
                "id=" + id +
                ", userId=" + userId +
                ", courseId=" + courseId +
                ", takeTheCourseWin=" + takeTheCourseWin +
                '}';
    }
}
